package com.rustic.server.vo;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.Restaurant;

import java.util.Date;

/**
 * 表[restaurant]对应VO类
 *
 * @author auto
 */

@Data
public class RestaurantVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 餐厅名称
     */
    @ApiModelProperty(value = "餐厅名称", dataType = "String")
    private String name;

    /**
     * 餐厅地址
     */
    @ApiModelProperty(value = "餐厅地址", dataType = "String")
    private String address;

    /**
     * 餐厅详细地址
     */
    @ApiModelProperty(value = "餐厅详细地址", dataType = "String")
    private String detailedAddress;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    public RestaurantVO(Restaurant restaurant) {
        if (restaurant != null) {
            BeanUtil.copyProperties(restaurant, this);
        }
    }
}
